import axios from "../config"

/**
 * 创建分享链接
 * @returns {Promise<unknown>}
 */
export const shareFile = data => {
  return axios({
    url: "/api/share/addShare",
    method: "post",
    data
  })
}

/**
 * 使用分享链接
 * @returns {Promise<unknown>}
 */
export const getShare = data => {
  return axios({
    url: "/api/share/getShare",
    method: "post",
    data
  })
}/**
 * 使用分享链接
 * @returns {Promise<unknown>}
 */
export const getStoreHouse = data => {
    return axios({
      url: "/api/share/getStoreHouse",
      method: "post",
      data
    })
  }
